package com.webware.view.shared;

import java.util.ArrayList;

public class BaseFolder implements Folder {
    private String name;
    private Object userData;
    private ArrayList<Folder> childs = new ArrayList<Folder>();

    public BaseFolder(String name){
	super();
	setName(name);
    }
    
    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public Object getUserData() {
	return userData;
    }

    public void setUserData(Object userData) {
	this.userData = userData;
    }

    public ArrayList<Folder> getChilds() {
	return childs;
    }

    public void setChilds(ArrayList<Folder> childs) {
	this.childs.clear();
	if(childs != null) this.childs.addAll(childs);
    }

}
